Code 2004/02/02 1 min read Online check script By Ozh This script checks if a remote host is up (or at least answering to ping) < View plain text > code #!/bin/bash ping -c 1 $1 >/dev/null 2>&1 if [ "$?" = "0" ]; then echo -n "up" else echo -n "down" fi